package demolinkedlist;

/**
 * @Description
 */

public class Test {

    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(4);

        myLinkedList.addLast(0);
        myLinkedList.addIndex(2);

        myLinkedList.display();
    }
}
